package com.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pojo.Trail;
import com.vo.TrailVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface TrailDAO extends BaseMapper<Trail> {

    IPage<TrailVo> selectTrail(Page page, @Param("businessName")String businessName, @Param("staffName")String staffName, @Param("time1")String time1, @Param("time2")String time2, @Param("queryStr") String queryStr, @Param("zyNameList") List<String> zyNameList);

    List<TrailVo> exportTrailList(@Param("businessName")String businessName, @Param("staffName")String staffName, @Param("time1")String time1, @Param("time2")String time2, @Param("queryStr") String queryStr, @Param("zyNameList") List<String> zyNameList);

    List<TrailVo> selectTrailRecent(@Param("staff_bh") String bh) ;

    List<TrailVo> selectTrailList(@Param("staffName")String staffName, @Param("time1")String time1);

    IPage<TrailVo> selectTrailListByBusiness(Page page, @Param("businessBh")Integer businessBh, @Param("time1")String time1);

    IPage<TrailVo> selectTrailListByApp(Page page, @Param("businessBh")Integer businessBh, @Param("time1")String time1, @Param("time2")String time2);

    IPage<TrailVo> getBusinessStatisticsDetail(Page page, @Param("businessBh")String businessBh, @Param("queryDate")String queryDate);

    List<TrailVo> getBusinessStatisticsDetailByExport(@Param("businessBh")String businessBh, @Param("queryDate")String queryDate);

    IPage<TrailVo> getStaffStatisticsDetail(Page page, @Param("staffBh")String staffBh, @Param("queryDate")String queryDate);
}
